    #include <stdio.h>
    #include <string.h>

    int main()
    {
        #if 0
            int n,x,y;
            int r = 0;
            printf("输入一个整数：\n");
            scanf("%d", &n);

            y = n;
            while( n != 0)
            {
                x = n%10;
                r = r * 10 + x;/*取倒数，利用追加的方式 算出*/
                n = n /10;

            }
            if (y == r)
            
                printf("%d is true.\n", y);
                else
                printf("%d is false.\n", y);
            #endif

        int num;/*自己定义的数*/
        int num2 = 0;/*倒过来的数*/
        printf("请输入你要判断的数：\n");
        scanf("%d", &num);
        
        for( int idx = num; idx >= 0; idx = idx / 10)
        {
            num2 = idx % 10 + num2*10;



        }
        if(num2 == num)
        printf("%d is true\n", num);
        else
        printf("%d is false\n", num);


            
        return 0;

    }